@cWidth: 428px;
.usercenter-top {
  height: 12%;
  position: relative;
  .holder {
    height: 3rem;
  }
  .agent {
    color: #eee;
    margin-left: .5rem;
  }
  .ninedays-title {
    width: 40%;
    position: absolute;
    left: 10px;
    top: 20px;
  }
}

.usercenter-middle {
  height: 68.8%;
  position: relative; // border: 1px solid white;
  img.background-img {
    position: absolute;
    animation: eightdiagrams 6s infinite;
    animation-timing-function: linear;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%; // border: 1px solid white;
  }
  img.usercenter-icon {
    width: 100px;
    height: 100px;
  }
  .my-icon {
    position: relative;
    display: block;
    height: 164px;
    width: 164px;
    img {
      position: absolute;
      width: 164px;
      height: 164px;
      left: 0;
      top: 0;
    }
  }
}

.flex-box {
  display: flex;
  flex-direction: row;
  z-index: 1;
  height: 100%;
  width: 100%; // border: 1px solid white;
  .flex-item {
    // border: 1px solid white;
    flex: 1 1 auto;
    flex-basis: 33.33%;
    display: flex;
    flex-direction: row;
    align-content: space-around;
    flex-flow: wrap;
    justify-content: center;
    height: 100%;
    div {
      a {
        text-align: center;
      }
    }
  }
}

// animations
.item1 {
  transform: translate(120px, 40px);
}

.usercenter-bottom {
  position: absolute;
  width: 100%;
  height: 14%;
  bottom: 0;
  
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 12px;
  .bar {
    width: 12rem;
    height: 3rem;
  }
  .bar-half{
    width: 6rem;
    height: 3rem;
  }
  .back {
    left: 6%;
    width: 3rem;
    bottom: .4rem;
    position: absolute;
  }
  .text {
    width: 100%;
    bottom: 0;
    position: absolute;
    text-align: center;
    line-height: 3.5rem;
    font-size: 1.3rem;
  }
}

.center-view {
  background-image: url(../img/app/app-di.jpg);
  background-size: cover;
}

.user-center-view {
  background-image: url(../img/app/app-di.jpg);
  background-size: cover;
}

.user-center-header {
  width: 5rem;
  border-radius: 50%;
}

.user-center-diamond {
  width: 2rem;
  vertical-align: text-bottom;
  margin-right: .3rem;
}

.is-iPhone {
  .flex-box {}
}

.animate-1 {
  animation: a-1 .6s;
}

.animate-2 {
  animation: a-2 .6s;
}

.animate-3 {
  animation: a-3 .6s;
}

.animate-4 {
  animation: a-4 .6s;
}

.animate-5 {
  animation: a-5 .6s;
}

.animate-6 {
  animation: a-6 .6s;
}

@keyframes a-1 {
  from {
    transform: translate(64px, 64px);
  }
  to {
    transform: translate(0, 0);
  }
}

@keyframes a-2 {
  from {
    transform: translate(64px, -64px);
  }
  to {
    transform: translate(0, 0);
  }
}

@keyframes a-3 {
  from {
    transform: translate(0, 64px);
  }
  to {
    transform: translate(0, 0);
  }
}

@keyframes a-4 {
  from {
    transform: translate(0, -64px);
  }
  to {
    transform: translate(0, 0);
  }
}

@keyframes a-5 {
  from {
    transform: translate(-64px, 64px);
  }
  to {
    transform: translate(0, 0);
  }
}

@keyframes a-6 {
  from {
    transform: translate(-64px, -64px);
  }
  to {
    transform: translate(0, 0);
  }
}

@keyframes eightdiagrams {
  from {
    transform: rotateZ(0deg);
  }
  to {
    transform: rotateZ(360deg);
  }
}



@media screen and (min-width: 320px) {
  .usercenter-middle img.usercenter-icon {
    width: 78px;
    height: 78px;
  }
  .usercenter-middle  .my-icon {
    width: 100px;
    height: 120px;
    img {
      width: 100px;
      height: 120px;
    }
  }

}


@media screen and (min-width:375px) {
  .usercenter-middle img.usercenter-icon {
    width:88px;
    height:88px;
  }
  .usercenter-middle .my-icon {
    width: 140px;
    height: 164px;
    img {
      width: 140px;
      height: 164px;
    }
  }
}


@media screen and (min-width: 768px) {
  .usercenter-middle img.usercenter-icon {
    width: 164px;
    height: 164px;
  }
}
